home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / source / gutil / set_si_buf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1985-01-23  |  509 b   |  33 lines

  1. # include    <stdio.h>
  2. # include    <ingres.h>
  3. # include    <sccs.h>
  4.  
  5. SCCSID(@(#)set_si_buf.c    8.1    12/31/84)
  6.  
  7. /*
  8. **  SET_SI_BUF -- set standard input buffer unconditionally
  9. **
  10. **    This routine sets the standard input buffer to give
  11. **    buffered input.  The buffer is contained internally.
  12. **
  13. **    Parameters:
  14. **        none
  15. **
  16. **    Returns:
  17. **        TRUE.
  18. **
  19. **    Side Effects:
  20. **        The standard input is left buffered.
  21. **
  22. **    Trace Flags:
  23. **        none
  24. */
  25.  
  26. set_si_buf()
  27. {
  28.     static char    buffer[BUFSIZ];
  29.  
  30.     setbuf(stdin, buffer);
  31.     return (TRUE);
  32. }
  33.